package com.krui.iweibo.service.parseweibo;

import android.text.SpannableStringBuilder;
import android.widget.TextView;

public class SimpleWeiboManager {

	private static WeiboHelper weiboHelper = new WeiboHelper();
	
	public static void parser(TextView textView , String weibo){
		textView.setText(weiboHelper.parseWeibo(weibo, createCallback(textView,weibo)));
	}

	private static WeiboParseCallback createCallback(final TextView textView,
			String weibo) {
		
		return new WeiboParseCallback() {
			
			@Override
			public void onFinish(String weibo, SpannableStringBuilder spannable) {
				
				textView.setText(spannable);
			}
		};
	}
	
	
	
}
